package monster.com.cvh.bean;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
 * @author: 13580
 * @data: 2018/4/3
 * @function:教育经历的Bean
 */
public class EducationBean {
    /**
     * code : 1
     * data : [{"degree":"本科","enroll_time":"2016年10月","graduate_time":"2016年10月","id":1,"major":"t","school_name":"t","update_time":"2018-04-11 19:49:21.567756"}]
     * msg : ok
     */

    private int code;
    private String msg;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean implements Cloneable ,Serializable{
        private static final long serialVersionUID = -2651683528024468827L;
        /**
         * degree : 本科
         * enroll_time : 2016年10月
         * graduate_time : 2016年10月
         * id : 1
         * major : t
         * school_name : t
         * update_time : 2018-04-11 19:49:21.567756
         */

        private String degree = "";
        private String enroll_time = "";
        private String graduate_time = "";
        private int id;
        private String major = "";
        private String school_name = "";
        private String update_time = "";

        public DataBean() {
        }

        public DataBean(int id) {
            this.id = id;
        }

        @Override
        protected Object clone() throws CloneNotSupportedException {
            DataBean dataBean = null;
            try {
                dataBean = (DataBean) super.clone();
            } catch (CloneNotSupportedException e) {
                e.printStackTrace();
            }
            return dataBean;
        }

        @Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (!(o instanceof DataBean)) return false;
            DataBean dataBean = (DataBean) o;
            return getId() == dataBean.getId() &&
                    Objects.equals(getDegree(), dataBean.getDegree()) &&
                    Objects.equals(getEnroll_time(), dataBean.getEnroll_time()) &&
                    Objects.equals(getGraduate_time(), dataBean.getGraduate_time()) &&
                    Objects.equals(getMajor(), dataBean.getMajor()) &&
                    Objects.equals(getSchool_name(), dataBean.getSchool_name()) &&
                    Objects.equals(getUpdate_time(), dataBean.getUpdate_time());
        }

        @Override
        public int hashCode() {

            return Objects.hash(getDegree(), getEnroll_time(), getGraduate_time(), getId(), getMajor(), getSchool_name(), getUpdate_time());
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "degree='" + degree + '\'' +
                    ", enroll_time='" + enroll_time + '\'' +
                    ", graduate_time='" + graduate_time + '\'' +
                    ", id=" + id +
                    ", major='" + major + '\'' +
                    ", school_name='" + school_name + '\'' +
                    ", update_time='" + update_time + '\'' +
                    '}';
        }

        public String getDegree() {
            return degree;
        }

        public void setDegree(String degree) {
            this.degree = degree;
        }

        public String getEnroll_time() {
            return enroll_time;
        }

        public void setEnroll_time(String enroll_time) {
            this.enroll_time = enroll_time;
        }

        public String getGraduate_time() {
            return graduate_time;
        }

        public void setGraduate_time(String graduate_time) {
            this.graduate_time = graduate_time;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getMajor() {
            return major;
        }

        public void setMajor(String major) {
            this.major = major;
        }

        public String getSchool_name() {
            return school_name;
        }

        public void setSchool_name(String school_name) {
            this.school_name = school_name;
        }

        public String getUpdate_time() {
            return update_time;
        }

        public void setUpdate_time(String update_time) {
            this.update_time = update_time;
        }
    }
}
